import { Tools } from 'weaver-mobile';
import { catchApiError } from '../util/index';

// 选择查看日程类型
export const getWorkPlanWeekGroupSelect = params => {
  let options = {
    method: 'POST',
    url: '/api/workplan/calendar/getWorkPlanWeekGroupSelect',
    params: {...params, ismobile: 1}
  };
  return Tools.callApi(options).then(catchApiError);
}

// 一周日程安排日程数据
export const getWorkPlanWeekData = params => {
  let options = {
    method: 'POST',
    url: '/api/workplan/calendar/getWorkPlanWeekData',
    params: {...params, ismobile: 1}
  };
  return Tools.callApi(options).then(catchApiError);
}
